import random
guess = random.randint(1000,9999)
from_user = int(input("guess : "))
while from_user != guess:
    if ( from_user < guess ):
        print("higher")
    else:
        print("lower")
    from_user = int(input("guess : "))
print("guess was : " + str(guess))